package com.zzl.springboot_mybatis_demo.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * description: Rest配置类
 * @author 朱正磊
 * @date 2019-11-21 10:57:57
 */
@Configuration
public class RestConfig {

    /**
     * description: Rest模板对象的bean
     * @author 朱正磊
     * @date 2019-11-20 12:04:51
     * @return 返回Rest模板对象
     */
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
